/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package assisisw.smartcal.notificationsubsystem;

import assisisw.smartcal.entitysubsystem.Event;
import assisisw.smartcal.entitysubsystem.Notification;
import assisisw.smartcal.entitysubsystem.User;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author Francesco
 */
@Stateless
public class EntityControllerObserver implements IEntityControllerObserver
{

    // Instance Fields
    
    /***/
    @EJB ()
    private INotificationManager notificationManager ;
    
    // Instance Methods
    
    /**
     * AS THE SUPER'S ONE.
     */
    @Override
    public void addNotification ( Notification.NotificationType type , Event generatingEvent , User recipient , String message ) 
    {
        notificationManager.generateNotification ( type , generatingEvent , recipient , message ) ;
    }
    
}
